'use strict';


const Controller = require('egg').Controller;

class LoginController extends Controller {
    async index() {
        const { ctx } = this;
        let result = await ctx.service.user.login.index(ctx.request.body)
       // 返回 token 到前端
        ctx.body = result;
        ctx.body = {
            data: result
        }
    }
}

module.exports = LoginController